package com.hist.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @auther Ren Gaoshuai
 * @date 2021-04-06 22:03
 **/
public class After implements AfterReturningAdvice {
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("已经执行了"+method.getName()+"方法，返回值是："+returnValue);
    }
}
